package com.yan.domain;

public abstract class Pet {
    private String name;
    private int health;
    private int intimacy;

    public Pet(String name, int health, int intimacy) {
        this.name = name;
        this.health = health;
        this.intimacy = intimacy;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getIntimacy() {
        return intimacy;
    }

    public void setIntimacy(int intimacy) {
        this.intimacy = intimacy;
    }

    abstract void print();
}
